package com.shop.serviceImpl.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.entity.users.User;
import com.shop.mappers.user.User_mapper;
import com.shop.service.user.User_service;

@Service
public class user_service_Impl implements User_service {
	
	@Autowired
	private User_mapper userM;

	@Override
	public User qreayUserByName(String userName) {
		return userM.qreayUserByName(userName);
	}

	@Override
	public void insertUser(User user) {
		userM.insertUser(user);
	}

	@Override
	public User qreayUserByEmail(String email) {
		
		return userM.qreayUserByEmail(email);
	}

}
